import request from '@/utils/request';

export async function getRecruitListgw(params) {
    return request('/api/officialwebsite/v1/recruitment/page/list', {
        method: 'POST',
        data: params
    });
}

export async function getPostType(params) {
    return request('/api/officialwebsite/public/v1/recruitment/dict/post/list', {
        method: 'POST',
        data: params
    });
}

export async function fetchHide(params) {
    return request('/api/officialwebsite/v1/recruitment/hide', {
        method: 'POST',
        data: params
    });
}
export async function fetchSort(params) {
    return request('/api/officialwebsite/v1/recruitment/sort', {
        method: 'POST',
        data: params
    });
}

export async function fetchDelect(params) {
    return request('/api/officialwebsite/v1/recruitment/delete', {
        method: 'POST',
        data: params
    });
}
/**
 * 官网职位基础数据字典
 */
export async function getTypeList() {
    return request('/api/oa/public/v1/office/post/dict/getlist', {
        method: 'POST'
    });
}
/**
 *  发布职位接口
 */
export async function getAddpost(params) {
    return request('/api/officialwebsite/v1/recruitment/add', {
        method: 'POST',
        data: params
    });
}

/**
 *  编辑职位接口
 */
export async function getEditpost(params) {
    return request('/api/officialwebsite/v1/recruitment/update', {
        method: 'POST',
        data: params
    });
}
/**
 *  职位详情接口
 */
export async function getPostDetail(params) {
    return request('/api/officialwebsite/v1/recruitment/detail', {
        method: 'POST',
        data: params
    });
}
